package oss.ngocminh.fw.data;

import java.util.Date;

public class Post {

	private String postId;
	private String userName;
	private Date postDate;
	private String title;
	private String content;

	public Post(String id, String userName, Date postDate, String title, String content) {
		super();
		this.postId = id;
		this.userName = userName;
		this.postDate = postDate;
		this.title = title;
		this.content = content;
	}

	public String getUserName() {
		return userName;
	}

	public Date getPostDate() {
		return postDate;
	}

	public String getTitle() {
		return title;
	}

	public String getContent() {
		return content;
	}

	public String getPostId() {
		return postId;
	}

	public void setPostId(String id) {
		this.postId = id;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return userName + ": " + content;
	}
	
}
